package org.dicr.util.jds.gui;

import java.awt.*;

import org.dicr.event.*;

import com.borland.dbswing.*;

/***********************************************************************************************************************
 * @author Igor A Tarasov me@dicr.dn.ua
 * @version 021025
 **********************************************************************************************************************/
public abstract class DataDetailPanel extends DataPanel {
	/**
     * 
     */
	private static final long serialVersionUID = 2028381495271251141L;

	protected TableScrollPane scrollPane = new TableScrollPane();

	/*******************************************************************************************************************
	 * Конструктор
	 ******************************************************************************************************************/
	public DataDetailPanel() {
		try {
			jbInit();
		} catch (Exception ex) {
			DicrExceptionHandler.handleException(ex, this);
		}
	}

	/*******************************************************************************************************************
	 * Инициализация
	 ******************************************************************************************************************/
	private void jbInit() {
		this.controlPanel.setControlButtonsMask(DataControlPanel.BUTTON_SAVE | DataControlPanel.BUTTON_REFRESH
		        | DataControlPanel.BUTTON_CANSEL | DataControlPanel.BUTTON_POST | DataControlPanel.BUTTON_PREV
		        | DataControlPanel.BUTTON_NEXT);
		this.add(this.scrollPane, BorderLayout.CENTER);
	}
}
